<?php

namespace App\Decorator;

class Login {

    function beforeRequest($controller)
    {
        session_start();
        if (empty($_SESSION['isLogin']))
        {
            header('location:/login/index/');
            exit;
        }
        $this->_controller = $controller;
    }

    function afterRequest($return_value)
    {
        
    }

}
